package rickyGame.game.action.state
{
	import ricky.game.graphic.Graphic;
	
	import rickyGame.game.Fighter;
	
	/**
	 * 对目标放大
	 */
	public class InstallGraphicAct extends StateAct
	{
		public function InstallGraphicAct(actor:Fighter,value:Number,endTime:Number)
		{
			super(actor, null, endTime);
			_value=value;
		}
		
		override public function begin():void
		{
			_graphic=actor.graphic as Graphic ;
			_graphic.scaleX=_value;
			_graphic.scaleY=_value;
			super.begin();
		}
		
		override public function end():void
		{
			_graphic.scaleX=1;
			_graphic.scaleY=1;
			super.end();
		}
		
		
		//
		private var _pro:String;
		private var _graphic:Graphic;
		private var _fightProperty:String;
		private var _value:Number;
	}
}